package model;

import java.util.Date;

final public class Feedback 
{
    private int id;
    private String subject;
    private String text;
    private Date time;
    private String signature;
    
    private Feedback()
    {
    }

    public Feedback(String subject, String text, Date time, String signature)
    {
        setId(-1);
        setSubject(subject);
        setText(text);
        setTime(time);
        setSignature(signature);
    }

    public static Feedback create()
    {
        return new Feedback();
    }

    public Feedback setId(int id)
    {
        this.id = id;
        return this;
    }

    public int getId()
    {
        return id;
    }
    
    public Feedback setSubject(String subject)
    {
        this.subject = subject;
        return this;
    }
    
    public String getSubject()
    {
        return subject;
    }

    public Feedback setText(String text)
    {
        this.text = text;
        return this;
    }
    
    public String getText()
    {
        return text;
    }
    
    public Feedback setTime(Date time)
    {
        this.time = time;
        return this;
    }
    
    public Date getTime()
    {
        return time;
    }
    
    public Feedback setSignature(String signature)
    {
        this.signature = signature;
        return this;
    }
    
    public String getSignature()
    {
        return signature;
    }    
}